package xian.woniuxy.be.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CustomerlossExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CustomerlossExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLossIdIsNull() {
            addCriterion("loss_id is null");
            return (Criteria) this;
        }

        public Criteria andLossIdIsNotNull() {
            addCriterion("loss_id is not null");
            return (Criteria) this;
        }

        public Criteria andLossIdEqualTo(Integer value) {
            addCriterion("loss_id =", value, "lossId");
            return (Criteria) this;
        }

        public Criteria andLossIdNotEqualTo(Integer value) {
            addCriterion("loss_id <>", value, "lossId");
            return (Criteria) this;
        }

        public Criteria andLossIdGreaterThan(Integer value) {
            addCriterion("loss_id >", value, "lossId");
            return (Criteria) this;
        }

        public Criteria andLossIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("loss_id >=", value, "lossId");
            return (Criteria) this;
        }

        public Criteria andLossIdLessThan(Integer value) {
            addCriterion("loss_id <", value, "lossId");
            return (Criteria) this;
        }

        public Criteria andLossIdLessThanOrEqualTo(Integer value) {
            addCriterion("loss_id <=", value, "lossId");
            return (Criteria) this;
        }

        public Criteria andLossIdIn(List<Integer> values) {
            addCriterion("loss_id in", values, "lossId");
            return (Criteria) this;
        }

        public Criteria andLossIdNotIn(List<Integer> values) {
            addCriterion("loss_id not in", values, "lossId");
            return (Criteria) this;
        }

        public Criteria andLossIdBetween(Integer value1, Integer value2) {
            addCriterion("loss_id between", value1, value2, "lossId");
            return (Criteria) this;
        }

        public Criteria andLossIdNotBetween(Integer value1, Integer value2) {
            addCriterion("loss_id not between", value1, value2, "lossId");
            return (Criteria) this;
        }

        public Criteria andCusIdIsNull() {
            addCriterion("cus_id is null");
            return (Criteria) this;
        }

        public Criteria andCusIdIsNotNull() {
            addCriterion("cus_id is not null");
            return (Criteria) this;
        }

        public Criteria andCusIdEqualTo(Integer value) {
            addCriterion("cus_id =", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdNotEqualTo(Integer value) {
            addCriterion("cus_id <>", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdGreaterThan(Integer value) {
            addCriterion("cus_id >", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("cus_id >=", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdLessThan(Integer value) {
            addCriterion("cus_id <", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdLessThanOrEqualTo(Integer value) {
            addCriterion("cus_id <=", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdIn(List<Integer> values) {
            addCriterion("cus_id in", values, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdNotIn(List<Integer> values) {
            addCriterion("cus_id not in", values, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdBetween(Integer value1, Integer value2) {
            addCriterion("cus_id between", value1, value2, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdNotBetween(Integer value1, Integer value2) {
            addCriterion("cus_id not between", value1, value2, "cusId");
            return (Criteria) this;
        }

        public Criteria andUidIsNull() {
            addCriterion("uid is null");
            return (Criteria) this;
        }

        public Criteria andUidIsNotNull() {
            addCriterion("uid is not null");
            return (Criteria) this;
        }

        public Criteria andUidEqualTo(Integer value) {
            addCriterion("uid =", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotEqualTo(Integer value) {
            addCriterion("uid <>", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThan(Integer value) {
            addCriterion("uid >", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThanOrEqualTo(Integer value) {
            addCriterion("uid >=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThan(Integer value) {
            addCriterion("uid <", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThanOrEqualTo(Integer value) {
            addCriterion("uid <=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidIn(List<Integer> values) {
            addCriterion("uid in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotIn(List<Integer> values) {
            addCriterion("uid not in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidBetween(Integer value1, Integer value2) {
            addCriterion("uid between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotBetween(Integer value1, Integer value2) {
            addCriterion("uid not between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(Integer value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(Integer value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(Integer value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(Integer value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(Integer value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<Integer> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<Integer> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(Integer value1, Integer value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(Integer value1, Integer value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andConfirmLosstimeIsNull() {
            addCriterion("confirm_losstime is null");
            return (Criteria) this;
        }

        public Criteria andConfirmLosstimeIsNotNull() {
            addCriterion("confirm_losstime is not null");
            return (Criteria) this;
        }

        public Criteria andConfirmLosstimeEqualTo(Date value) {
            addCriterion("confirm_losstime =", value, "confirmLosstime");
            return (Criteria) this;
        }

        public Criteria andConfirmLosstimeNotEqualTo(Date value) {
            addCriterion("confirm_losstime <>", value, "confirmLosstime");
            return (Criteria) this;
        }

        public Criteria andConfirmLosstimeGreaterThan(Date value) {
            addCriterion("confirm_losstime >", value, "confirmLosstime");
            return (Criteria) this;
        }

        public Criteria andConfirmLosstimeGreaterThanOrEqualTo(Date value) {
            addCriterion("confirm_losstime >=", value, "confirmLosstime");
            return (Criteria) this;
        }

        public Criteria andConfirmLosstimeLessThan(Date value) {
            addCriterion("confirm_losstime <", value, "confirmLosstime");
            return (Criteria) this;
        }

        public Criteria andConfirmLosstimeLessThanOrEqualTo(Date value) {
            addCriterion("confirm_losstime <=", value, "confirmLosstime");
            return (Criteria) this;
        }

        public Criteria andConfirmLosstimeIn(List<Date> values) {
            addCriterion("confirm_losstime in", values, "confirmLosstime");
            return (Criteria) this;
        }

        public Criteria andConfirmLosstimeNotIn(List<Date> values) {
            addCriterion("confirm_losstime not in", values, "confirmLosstime");
            return (Criteria) this;
        }

        public Criteria andConfirmLosstimeBetween(Date value1, Date value2) {
            addCriterion("confirm_losstime between", value1, value2, "confirmLosstime");
            return (Criteria) this;
        }

        public Criteria andConfirmLosstimeNotBetween(Date value1, Date value2) {
            addCriterion("confirm_losstime not between", value1, value2, "confirmLosstime");
            return (Criteria) this;
        }

        public Criteria andLossMeasureIsNull() {
            addCriterion("loss_measure is null");
            return (Criteria) this;
        }

        public Criteria andLossMeasureIsNotNull() {
            addCriterion("loss_measure is not null");
            return (Criteria) this;
        }

        public Criteria andLossMeasureEqualTo(String value) {
            addCriterion("loss_measure =", value, "lossMeasure");
            return (Criteria) this;
        }

        public Criteria andLossMeasureNotEqualTo(String value) {
            addCriterion("loss_measure <>", value, "lossMeasure");
            return (Criteria) this;
        }

        public Criteria andLossMeasureGreaterThan(String value) {
            addCriterion("loss_measure >", value, "lossMeasure");
            return (Criteria) this;
        }

        public Criteria andLossMeasureGreaterThanOrEqualTo(String value) {
            addCriterion("loss_measure >=", value, "lossMeasure");
            return (Criteria) this;
        }

        public Criteria andLossMeasureLessThan(String value) {
            addCriterion("loss_measure <", value, "lossMeasure");
            return (Criteria) this;
        }

        public Criteria andLossMeasureLessThanOrEqualTo(String value) {
            addCriterion("loss_measure <=", value, "lossMeasure");
            return (Criteria) this;
        }

        public Criteria andLossMeasureLike(String value) {
            addCriterion("loss_measure like", value, "lossMeasure");
            return (Criteria) this;
        }

        public Criteria andLossMeasureNotLike(String value) {
            addCriterion("loss_measure not like", value, "lossMeasure");
            return (Criteria) this;
        }

        public Criteria andLossMeasureIn(List<String> values) {
            addCriterion("loss_measure in", values, "lossMeasure");
            return (Criteria) this;
        }

        public Criteria andLossMeasureNotIn(List<String> values) {
            addCriterion("loss_measure not in", values, "lossMeasure");
            return (Criteria) this;
        }

        public Criteria andLossMeasureBetween(String value1, String value2) {
            addCriterion("loss_measure between", value1, value2, "lossMeasure");
            return (Criteria) this;
        }

        public Criteria andLossMeasureNotBetween(String value1, String value2) {
            addCriterion("loss_measure not between", value1, value2, "lossMeasure");
            return (Criteria) this;
        }

        public Criteria andLossStatusIsNull() {
            addCriterion("loss_status is null");
            return (Criteria) this;
        }

        public Criteria andLossStatusIsNotNull() {
            addCriterion("loss_status is not null");
            return (Criteria) this;
        }

        public Criteria andLossStatusEqualTo(String value) {
            addCriterion("loss_status =", value, "lossStatus");
            return (Criteria) this;
        }

        public Criteria andLossStatusNotEqualTo(String value) {
            addCriterion("loss_status <>", value, "lossStatus");
            return (Criteria) this;
        }

        public Criteria andLossStatusGreaterThan(String value) {
            addCriterion("loss_status >", value, "lossStatus");
            return (Criteria) this;
        }

        public Criteria andLossStatusGreaterThanOrEqualTo(String value) {
            addCriterion("loss_status >=", value, "lossStatus");
            return (Criteria) this;
        }

        public Criteria andLossStatusLessThan(String value) {
            addCriterion("loss_status <", value, "lossStatus");
            return (Criteria) this;
        }

        public Criteria andLossStatusLessThanOrEqualTo(String value) {
            addCriterion("loss_status <=", value, "lossStatus");
            return (Criteria) this;
        }

        public Criteria andLossStatusLike(String value) {
            addCriterion("loss_status like", value, "lossStatus");
            return (Criteria) this;
        }

        public Criteria andLossStatusNotLike(String value) {
            addCriterion("loss_status not like", value, "lossStatus");
            return (Criteria) this;
        }

        public Criteria andLossStatusIn(List<String> values) {
            addCriterion("loss_status in", values, "lossStatus");
            return (Criteria) this;
        }

        public Criteria andLossStatusNotIn(List<String> values) {
            addCriterion("loss_status not in", values, "lossStatus");
            return (Criteria) this;
        }

        public Criteria andLossStatusBetween(String value1, String value2) {
            addCriterion("loss_status between", value1, value2, "lossStatus");
            return (Criteria) this;
        }

        public Criteria andLossStatusNotBetween(String value1, String value2) {
            addCriterion("loss_status not between", value1, value2, "lossStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}